﻿using System;
using System.Collections.Generic;
using System.Text;
using Transformer.iHunter;

namespace RuleBasedKeywordFilter
{
    class RuleBasedKeywordFilterProvider:IFilterProvider
    {
        #region IFilterProvider Members

        public IFilter CreateFilterInstance(FilterInfo info)
        {
            IFilter filter = null;
            try
            {
                //filter = new RuleBasedKeywordFilter(info.Settings);
            }
            catch
            {
                return null;
            }
            return filter;
        }

        public System.Windows.Forms.UserControl GetFilterConfigureEditor()
        {
            throw new NotImplementedException();
        }

        public System.Windows.Forms.UserControl[] GetNewFilterWizardPages()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IPlugin Members

        public Guid Guid
        {
            get { return new Guid("3B07E46D-484C-42e7-922C-E5101D0FD622"); ; }
        }

        public string Name
        {
            get { return "Rule Based Keyword Filter"; }
        }

        public string Description
        {
            get { return "A rule based keyword message filter."; }
        }

        public void Initialize(IPluginClient client)
        {
            //do nothing;
        }

        public System.Windows.Forms.UserControl GetPluginConfigureEditor()
        {
            return null;
        }

        public event PluginErrorEventHandler ErrorOccur;

        #endregion

        #region IDisposable Members

        public void Dispose()
        {
            //do nothing
        }

        #endregion
    }
}
